﻿@model ETA.Entity.User
@{
    ViewBag.Title = "个人信息中心";
    var email = Model.Email;
}

<h2><strong>个人信息中心</strong></h2>
<div class="container">
    <div class="divIleft">
        <ul class="divIMenu">
            <li class="liItem"><span class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;个人档案管理</li>
            <li class="liItem"><span class="glyphicon glyphicon-certificate"></span>&nbsp;&nbsp;帐号密码管理</li>
            <li><span class="glyphicon glyphicon-envelope"></span>&nbsp;&nbsp;@Html.ActionLink("消息中心", "Message", "I")</li>
        </ul>
    </div>
    <div class="divIcenter">
        <div class="IcenterItem">
            <form class="form-horizontal" role="form" id="formUerInfo">
                <div class="form-group">
                    <label for="Email" class="col-sm-2 control-label">邮箱：</label>
                    <div class="col-sm-4">
                        @Html.TextBoxFor(m => m.Email, new { @class = "form-control" })
                    </div>
                </div>
                <div class="form-group">
                    <label for="QQ" class="col-sm-2 control-label">QQ：</label>
                    <div class="col-sm-4">
                        @Html.TextBoxFor(m => m.QQ, new { @class = "form-control" })
                    </div>
                </div>
                <div class="form-group">
                    <label for="Mobile" class="col-sm-2 control-label">手机号码：</label>
                    <div class="col-sm-4">
                        @Html.TextBoxFor(m => m.Mobile, new { @class = "form-control" })
                    </div>
                </div>
                <div class="form-group">
                    <label for="CheckNum" class="col-sm-2 control-label">验证码：</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" id="CheckNum" name="CheckNum" placeholder="请输入验证码">
                    </div>
                    <button type="button" id="btnSendCheckNum" class="btn btn-primary">获取验证码</button>
                </div>
                <div class="form-group">
                    <label for="IsMarried" class="col-sm-2 control-label">婚姻状况：</label>
                    <div class="col-sm-4">
                        未婚 @Html.RadioButtonFor(m => m.IsMarried, false, new { name = "IsMarried" })
                        已婚 @Html.RadioButtonFor(m => m.IsMarried, true, new { name = "IsMarried" })
                    </div>
                </div>
                <div class="form-group">
                    <label for="Age" class="col-sm-2 control-label">年龄：</label>
                    <div class="col-sm-4">
                        @Html.TextBoxFor(m => m.Age, new { @class = "form-control" })
                    </div>
                </div>
                <div class="form-group">
                    <label for="Height" class="col-sm-2 control-label">身高：</label>
                    <div class="col-sm-4">
                        @Html.TextBoxFor(m => m.Height, new { @class = "form-control" })
                    </div>
                </div>
                <div class="form-group">
                    <label for="Weight" class="col-sm-2 control-label">体重：</label>
                    <div class="col-sm-4">
                        @Html.TextBoxFor(m => m.Weight, new { @class = "form-control" })
                    </div>
                </div>
                <div class="form-group">
                    <label for="EyeGlass" class="col-sm-2 control-label">眼镜：</label>
                    <div class="col-sm-4">
                        @Html.TextBoxFor(m => m.EyeGlass, new { @class = "form-control" })
                    </div>
                </div>
                <div class="form-group">
                    <label for="EyeLeft" class="col-sm-2 control-label">左视力：</label>
                    <div class="col-sm-4">
                        @Html.TextBoxFor(m => m.EyeLeft, new { @class = "form-control" })
                    </div>
                </div>
                <div class="form-group">
                    <label for="EyeRight" class="col-sm-2 control-label">右视力：</label>
                    <div class="col-sm-4">
                        @Html.TextBoxFor(m => m.EyeRight, new { @class = "form-control" })
                    </div>
                </div>
                <div class="form-group">
                    <label for="IsGotpassport" class="col-sm-2 control-label">是否持有护照：</label>
                    <div class="col-sm-4">
                        有 @Html.RadioButtonFor(m => m.IsGotpassport, true, new { name = "IsMarried" })
                        无 @Html.RadioButtonFor(m => m.IsGotpassport, false, new { name = "IsMarried" })
                    </div>
                </div>
                <div class="form-group">
                    <label for="IsMarried" class="col-sm-2 control-label">有无出国经历：</label>
                    <div class="col-sm-4">
                        有 @Html.RadioButtonFor(m => m.HasAbroadExperience, true, new { name = "IsMarried" })
                        无 @Html.RadioButtonFor(m => m.HasAbroadExperience, false, new { name = "IsMarried" })
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-3 col-sm-4">
                        <button type="button" class="btn btn-primary" id="btnSubmit">提交</button>
                        <button type="button" class="btn btn-default" id="btnCancel">取消</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="IcenterItem" style="display: none">
            <div class="divModifyPwd">
                <h3>登录账户密码管理</h3>
                <form class="form-horizontal" role="form" id="formModifyPwd"  action="I/ModifyPwd" method="post">
                    <div class="form-group">
                        <label for="spanLoginName" class="col-sm-3 control-label">用户名：</label>
                        <div class="col-sm-4">
                            <span id="spanLoginName">@Model.LoginName</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="OldPwd" class="col-sm-3 control-label">原密码：</label>
                        <div class="col-sm-4">
                            <input type="password" class="form-control" id="OldPwd" name="OldPwd" placeholder="">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="NewPwd" class="col-sm-3 control-label">新密码：</label>
                        <div class="col-sm-4">
                            <input type="password" class="form-control" id="NewPwd" name="NewPwd" placeholder="">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="NewPwdCheck" class="col-sm-3 control-label">密码验证：</label>
                        <div class="col-sm-4">
                            <input type="password" class="form-control" id="NewPwdCheck" name="NewPwdCheck" placeholder="">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-3 col-sm-4">
                            <button type="button" class="btn btn-primary" id="btnSubmitNewPwd">提交</button>
                            <button type="button" class="btn btn-default" id="btnCancelNewPwd">取消</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
@section scripts
{
    @Scripts.Render("~/bundles/ICenter")
    @Scripts.Render("~/bundles/Register")
}
